//
//  AppDelegate+ZBLogicService.m
//  ZBMainFramework
//
//  Created by apple on 2018/10/23.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "AppDelegate+ZBLogicService.h"
#import "ZB_MainPulicAPI.h"
#import "ZB_HomeInterfaceDM.h"
#import "ZB_MineInterfaceDM.h"

@implementation AppDelegate (ZBLogicService)
/*
 加载根控制器
 *
 */
- (void)loadRootViewController
{
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [self launchPrepareLogicWork];
    [self.window makeKeyAndVisible];
}
//启动准备
- (void)launchPrepareLogicWork
{
        ZB_TabBarViewController *rootVC = [ZB_MainPulicAPI rootTabBarCcontroller];
    
        //主页
        [ZB_MainPulicAPI addChildVC:[ZB_HomeInterfaceDM m_instanceHomeViewController] normalImageName:@"ico_menu_home" selectedImageName:@"ico_menu_home_selected" title:@"主页" isRequiredNavController:YES];

        //我的
        [ZB_MainPulicAPI addChildVC:[ZB_MineInterfaceDM m_instanceMineViewController] normalImageName:@"ico_menu_mine" selectedImageName:@"ico_menu_mine_selected" title:@"我的" isRequiredNavController:YES];
   
       self.window.rootViewController = rootVC;
    
}

@end
